package com.stylefeng.guns.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.stylefeng.guns.common.persistence.model.TMonthbalanceDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-14
 */
public interface TMonthbalanceDetailMapper extends BaseMapper<TMonthbalanceDetail> {


    List<Map<String, Object>> monthList(Pagination page, Map param);
    Map<String, Object> monthGroup( Map param);

    List<Map<String, Object>> monthDetailList(Pagination page,@Param("ids")List<Integer> ids);

    List<Map<String, Object>> monthDetailListPS(Pagination page,@Param("balance_id")String balance_id);
    List<Map<String, Object>> monthDetailListSS(Pagination page,@Param("balance_id")String balance_id);
    List<Map<String, Object>> monthDetailListZZ(Pagination page,@Param("balance_id")String balance_id);
    List<Map<String, Object>> monthDetailListZT(Pagination page,@Param("balance_id")String balance_id);
    List<Map<String, Object>> monthDetailOtherList(Pagination page,@Param("monthbalance_id")String monthbalance_id);
    List<Map<String, Object>> monthDetailZJList(Pagination page,@Param("monthbalance_id")String monthbalance_id,@Param("id")String id);

    int isExistTransferMonthBalanceByTrainId(@Param("id")String id, @Param("setType")int setType);

    /**
     *  是否单笔出库
     */
    int isSingleOut(Integer id);

    int recordBackUp(String order_id);

    void delMonthBalanceBackUp(String order_id);
}
